<template>
  <div id="" class="activityType">
    <router-link v-for="activity in typeArr" :key="activity.key"
     :to="{ path: activity.pathName, query: {skillType:activity.skillType}}">
      <img :src="activity.imgUrl" alt="">
      <p>{{activity.value}}</p>
    </router-link>
  </div>
</template>
<script>
export default {
  name: "",
  data: () => ({
    typeArr:[{
      imgUrl:require('@/assets/indexImage/Practicepartner_icon.png'),
      value:'找陪练',
      pathName:'/findService',
      skillType:0,
    },{
      imgUrl:require('@/assets/indexImage/coach_icon.png'),
      value:'找教练',
      pathName:'/findService',
      skillType:2,
    },{
      imgUrl:require('@/assets/indexImage/playmate_icon.png'),
      value:'找圈友',
      pathName:'/findService',
      skillType:1,
    },{
      imgUrl:require('@/assets/indexImage/Events_icon.png'),
      value:'找赛事',
      pathName:'/findMatch',
      skillType:3,
    }]
  }),
  methods: {

  }
}
</script>
<style lang="scss" scoped>
.activityType{
  @include flex;
  a{
    @include flexcell;
    text-align: center;
    font-size: 16px;
    img{
      width: 50px;
      margin-bottom: 6px;
    }
  }
}
</style>
